package cn.itlight.basic.constant;


/**
* @Description: 公共常量类
* @Author: TomLiu
* @Version: 1.0
* @Date:  2022/7/6 11:38  
*/
public class BaseConstants {

    /**
    * @Description: 短信验证常量类
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/7/6 11:41
    */
    public class SmsConstant{

        public static final String UID = "tomliu";
        public static final String KEY = "C16FE6A8AE1F181F8E15B90E1149FF76";
    }

    /**
    * @Description: 验证code的常量类
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/7/6 12:53
    */
    public class VerifyCodeConstant{

        public static final String BUSINESS_REGISTER_PREFIX = "register:";

        public static final String BUSINESS_BINDER_PREFIX = "binder:";

    }

    /**
    * @Description: 微信的常量类
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/7/10 17:08
    */
    public class WxConstant{

        // 获取access_token的URL地址
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

        // 微信的appId
        public static final String APPID = "wxd853562a0548a7d0";

        // 微信的密钥
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

    }

}
